package com.juyu.reader.author.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.juyu.reader.author.dao.AuthorDao;
import com.juyu.reader.author.model.Author;

@Service
public class AuthorService {
	@Autowired
	public AuthorDao authorDao;

	public List<Author> loginAuthor(Author author) {
		return authorDao.loginAuthor(author);
	}

	public List<Author> validateAuthor(Author author) {
		return authorDao.validateAuthor(author);
	}

	public List<Author> validateAuthorNickname(Author author) {
		return authorDao.validateAuthorNickname(author);
	}

	public int registerAuthor(Author author) {
		return authorDao.registerAuthor(author);
	}

	public List<Author> findAuthor(Author author) {
		return authorDao.findAuthor(author);
	}

	public int countAuthor(Author author) {
		return authorDao.countAuthor(author);
	}

	public int insertAuthor(Author author) {
		return authorDao.insertAuthor(author);
	}

	public int updateAuthor(Author author) {
		return authorDao.updateAuthor(author);
	}

	public int deleteAuthor(Author author) {
		return authorDao.deleteAuthor(author);
	}

	public int updateAuthorPassword(Author author) {
		return authorDao.updateAuthorPassword(author);
	}
}
